<template>
  <div class="layout">
    <h3>layout4564</h3>
    <van-button type="default">默认按钮</van-button>
    <van-button type="primary">主要按钮</van-button>
    <van-button type="info">信息按钮</van-button>
    <van-button type="warning">警告按钮</van-button>
    <van-button type="danger">危险按钮</van-button>
    <van-button plain type="primary">朴素按钮</van-button>
    <van-button plain type="info">朴素按钮</van-button>
    <van-button plain hairline type="primary">细边框按钮</van-button>
    <van-button plain hairline type="info">细边框按钮</van-button>
    <van-button disabled type="primary">禁用状态</van-button>
    <van-button disabled type="info">禁用状态</van-button>
    <van-button loading type="primary"/>
    <van-button loading type="primary" loading-type="spinner"/>
    <van-button loading type="info" loading-text="加载中..."/>
    <van-button square type="primary">方形按钮</van-button>
    <van-button round type="info">圆形按钮</van-button>
    <van-button type="primary" size="large">大号按钮</van-button>
    <van-button type="primary" size="normal">普通按钮</van-button>
    <van-button type="primary" size="small">小型按钮</van-button>
    <van-button type="primary" size="mini">迷你按钮</van-button>
    <van-button type="primary" url="/vant/mobile.html">URL 跳转</van-button>
    <van-button type="primary" to="/von">路由跳转</van-button>
    <van-button color="#7232dd">自定义颜色</van-button>
    <van-button color="#7232dd" plain class="size">自定义颜色</van-button>

    <van-cell-group>
      <van-cell title="单元格" value="内容"/>
      <van-cell title="单元格" value="内容" label="描述信息"/>
    </van-cell-group>

    <van-cell title="单元格" is-link/>
    <van-cell title="单元格" is-link value="内容"/>
    <van-cell title="单元格" is-link arrow-direction="down" value="内容"/>
    <van-cell value="内容" is-link>
      <!-- 使用 title 插槽来自定义标题 -->
      
      
    </van-cell>

    <van-cell title="单元格" icon="shop-o">
      <!-- 使用 right-icon 插槽来自定义右侧图标 -->
      <van-icon slot="right-icon" name="search" style="line-height: inherit;"/>
    </van-cell>
    <van-datetime-picker
      v-model="vanDatetimePicker.currentDate"
      type="datetime"
      :min-date="vanDatetimePicker.minDate"
      :max-date="vanDatetimePicker.maxDate"
    />
  </div>
</template>

<script>
export default {
  name: "Layout",
  data() {
    return {
      vanDatetimePicker: {
        minHour: 10,
        maxHour: 20,
        minDate: new Date(),
        maxDate: new Date(2019, 10, 1),
        currentDate: new Date()
      }
    };
  },
  methods: {},
  components: {},
  computed: {},
  watch: {},
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  updated() {}, //生命周期 - 更新之后
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style lang='less' scoped>
//@import url(); 引入公共css类
.size {
  .van-button__text {
    padding: 30px 30px;
  }
}
</style>